<template>
    <el-breadcrumb separator="/">
        <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item v-for="item in $route.matched">{{ item.meta.title }}</el-breadcrumb-item>
    </el-breadcrumb>
</template>

<script>
export default {
    data() {
        return {


        }
    },
    created() {
        // console.log(this.$route)
    }
}
</script>
 
<style lang = "less" scoped>
.el-breadcrumb {
    padding: 20px;
}
</style>